
<div id="obsah"><p><h2>Pridaj úlohu</h2></p>


    <form action="<?php echo base_url(); ?>/tasks/add" method="post" name="form1">
        <table border="0" cellspacing="0" cellpadding="0">
            <tr><td> Popis:</td></tr>
            <tr><th><label for="name">Názov zadania:</label></th>
                <td><input name="name" type="text" size="20" maxlength="30" value="" /></td></tr>

            <tr>
                <th><label for="fk_books">Učebnica fyziky (ročník):</label></th>
                <td>
                    <select name="fk_books" size="1">
                      <?php
                      foreach ($books->result() as $b) {
                          echo "<option value='$b->id' /> $b->name";
                      }
                      ?>
                    </select></td></tr>

            <tr>
                <th><label for="x_units">Jednotky na x-ovej osi:</label></th>
                <td>
                    <input type="text" name="x_units" />
                </td></tr>

            <tr>
                <th><label for="y_units">Jednotky na y-ovej osi:</label></th>
                <td>
                         <input type="text" name="y_units" />
                    </td></tr>

            <tr><th><label for="page">Strana príkladu v učebnici:</label></th>
                <td><input name="page" type="text" size="20" maxlength="30" value="" class="numeric" /></td></tr>

            <tr><th><label for="description">Popis zadania:</label></th>
                <td><textarea name="description"> </textarea></td></tr>

            <tr>
                <th><label for="functions_count">Počet funkcií:</label></th>
                <td>
                    <select name="functions_count" size="1" id="fun">
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <option value="4">4</option>
                    </select></td></tr>

            <tr><td>&nbsp;</td><td><input name="submit" type="submit" id="submit" value="Vytvor" /></td></tr>
        </table>
    </form>

</div>
